<?php $this->load->view('layout/header');?>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <h3 class="page-title">新闻管理 <small>案例栏目</small></h3>
            <?php echo breadcrumb(array('新闻管理', 'news/grid'=>'案例栏目', '编辑栏目')); ?>
        </div>
    </div>
    <?php echo execute_alert_message(); ?>
    <div class="row-fluid">
        <div class="span12">
            <div class="portlet box green">
                <div class="portlet-title">
                    <div class="caption"><i class="icon-plus-sign"></i>添加栏目</div>
                    <div class="tools">
                        <a class="collapse" href="javascript:;"></a>
                        <a class="remove" href="javascript:;"></a>
                    </div>
                </div>
                <div class="portlet-body form">
                    <form class="form-horizontal line-form" action="<?php echo base_url('website/editPost') ?>" method="post" enctype="multipart/form-data">
                        <div class="control-group">
                            <label class="control-label"><em>* </em>栏目名</label>
                            <div class="controls">
                                <input type="hidden" name="list_id" value="<?php echo $website->list_id; ?>"/>
                                <input type="text" name="list_name" class="m-wrap large required" value="<?php echo $website->list_name; ?>">
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label"><em>* </em>序号</label>
                            <div class="controls">
                                <input type="text" name="sort" class="m-wrap large required" value="<?php echo $website->sort;?>">
                                 <span class="help-inline">越大越前</span>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label"><em>* </em>栏目内容</label>
                            <div class="controls">
                                <textarea class="textarea-multipart-edit required" name=list_content><?php echo $website->list_content;?></textarea>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label"><em>* </em>所属页面</label>
                            <div class="controls">
                                <select name="type_page" class="medium m-wrap">
                                    <?php foreach ($pageBelongArray as $key=>$item): ?>
                                    <option <?php if ($key == $website->type_page):?>selected="selected" <?php endif;?>value="<?php echo $key;?>"><?php echo $item;?></option>
                                    <?php endforeach;?>
                                </select>
                            </div>
                        </div>
                        <div class="form-actions">
                            <button class="btn green" type="submit"><i class="icon-ok"></i> 保存</button>
                            <a href="<?php echo base_url('website/grid') ?>">
                                <button class="btn" type="button">返回</button>
                            </a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $this->load->view('layout/footer');?>